package com.kyd.auth.service;

import com.kyd.api.vo.DriverAccountVO;
import com.kyd.base.exception.KydException;

/**
 * @author zhuangqi
 * @date 2019-03-27
 */
public interface DriverAccountService {

    /**
     * 注册
     * @param phone
     * @param password
     */
    void register(String phone, String password) throws KydException;

    /**
     * 登陆
     * @param phone
     * @param password
     */
    String login(String phone, String password) throws KydException;

    /**
     * 校验
     * @param token
     * @return
     */
    boolean verify(String token);


    /**
     * 获取信息
     * @param id
     * @return
     */
    DriverAccountVO get(Long id);
}
